<?php
/**
 * User: lie
 * Date: 2020-11-05 20:34
 * description: 前置运算符和后置运算符的区别
 */
    $a = 0;
    echo "后置运算符";
    for ($b = 0; $b <= 10; $b++){
        echo $a++;
    }

    echo "<br>前置运算符";
    $d = 0;
    for ($b = 0; $b <= 10; $b++){
        echo ++$d;
    }
    echo "<br>前置减运算";
    $f = 10;
    for ($b = 10; $b >= 0; $b--){
        echo --$f;
    }

    echo "<br>后置减运算";
    $g = 10;
    for ($b = 10; $b >= 0; $b--){
        echo $g--;
    }

